package com.example.demo1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/system")
public class SystemController {

    @RequestMapping("/login")
    public String login(){

        return "system/login";
    }
    @RequestMapping("/")
    public String toLogin(){
        return "system/login";
    }

    @RequestMapping("/index")
    public String index(){
        return "system/index";
    }

    @RequestMapping("/main")
    public String main(){
        return "system/main";
    }

    @RequestMapping("/menu")
    public String menu(){
        return "system/menu";
    }

    @RequestMapping("/menuSelectFunctions")
    public String menuSelectFunctions(){
        return "system/menuSelectFunctions";
    }

    @RequestMapping("/menuSelectIcons")
    public String menuSelectIcons(){
        return "system/menuSelectIcons";
    }

    @RequestMapping("/function")
    public String function(){
        return "system/function";
    }

    @RequestMapping("/role")
    public String role(){
        return "system/role";
    }

    @RequestMapping("/user")
    public String user(){
        return "system/user";
    }

    @RequestMapping("/companyUser")
    public String companyUser(){
        return "system/companyUser";
    }

    @RequestMapping("/company")
    public String company() { return "system/company"; }

    @RequestMapping("/depart")
    public String depart() { return "system/depart"; }

    @RequestMapping("/performanceDistribution")
    public String performanceDistribution() { return "system/performanceDistribution"; }

    @RequestMapping("/login4oa")
    public String login4oa(String token, Model model) {
        model.addAttribute("token", token);
        return "system/login4oa";
    }

    @RequestMapping("/customerSourceSettings")
    public String customerSourceSettings() {
        return "system/customerSourceSettings";
    }

    @RequestMapping("/opportunitySourceSettings")
    public String opportunitySourceSettings() {
        return "system/opportunitySourceSettings";
    }

    @RequestMapping("/customerGroupingSettings")
    public String customerGroupingSettings() {
        return "system/customerGroupingSettings";
    }

    @RequestMapping("/customerStatusSettings")
    public String customerStatusSettings() {
        return "system/customerStatusSettings";
    }

    @RequestMapping("/customerDynamicTypeSettings")
    public String customerDynamicTypeSettings() {
        return "system/customerDynamicTypeSettings";
    }

    @RequestMapping("/productGroupingSettings")
    public String productGroupingSettings() {
        return "system/productGroupingSettings";
    }
    @RequestMapping("/exchangeRate")
    public String exchangeRate() {
        return "system/exchangeRateSettings";
    }

    @RequestMapping("/userCenter")
    public String userCenter() { return "system/userCenter"; }

    @RequestMapping("/companyCenter")
    public String companyCenter() { return "system/companyCenter"; }

}
